package com.taotao.portal.pojo;

/**
 *  查询商品的单个pojo
 *  @author  DaiRui  
 *  @ClassName  : SearchItem
 *  @Description:
 *  @date  2017年4月15日 上午11:08:48 
 *  @Version  1.0
 */
public class SearchItem {

	private String id;
	private String title;
	private String sell_point;
	private String price;
	private String image; 
	private String category_name;
	private String desc;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSell_point() {
		return sell_point;
	}
	public void setSell_point(String sell_point) {
		this.sell_point = sell_point;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getImage() {
		
		// 这里截取 非常好
		if (image!=null&&!image.equals("")) {
			String[] strings = image.split(",");
			return strings[0];
		}
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getCategory_name() {
		return category_name;
	}
	public void setCategory_name(String category_name) {
		this.category_name = category_name;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
}
